package com.lvmama.pangolin.mt.service.impl;

import com.lvmama.pangolin.mybatis.mapper.mt.TicketCdetailMtMapper;
import com.lvmama.pangolin.entity.mt.TicketCdetailMt;
import com.lvmama.pangolin.entity.spider.TicketCommodity;
import com.lvmama.pangolin.entity.spider.TicketProduct;
import com.lvmama.pangolin.mt.service.TicketCdetailMtService;
import com.lvmama.pangolin.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * Created by zhoutianqi on 2017/09/06.
 */
@Service
@Transactional
public class TicketCdetailMtServiceImpl extends AbstractService<TicketCdetailMt> implements TicketCdetailMtService {
    @Autowired
    private TicketCdetailMtMapper ticketCdetailMtMapper;

	@Override
	public int insertSelective(TicketCommodity record) {
		// TODO Auto-generated method stub
		return ticketCdetailMtMapper.insertSelective(record);
	}

	@Override
	public int deleteByTaskAndProd(TicketCommodity record) {
		// TODO Auto-generated method stub
		return ticketCdetailMtMapper.deleteByTaskAndProd(record);
	}

	@Override
	public TicketCdetailMt findFailItemById(String rowkey) {
		// TODO Auto-generated method stub
		return ticketCdetailMtMapper.findFailItemById(rowkey);
	}

}
